/*
 * @Author: windy
 * @Date: 2021-07-16 11:08:08
 * @LastEditTime: 2021-07-16 11:12:16
 * @LastEditors: windy
 * @Description: 状态管理
 */
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
  state: {
    count: 0,
  },
  mutations: {
    setData(state, payload) {
      state[payload.key] = payload.value;
    },
  },
  getters: {},
  actions: {},
});
